<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户信息修改</title>
<link href="<%=basePath %>css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath %>js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	  $(".click").click(function(){
	  $(".tip").fadeIn(200);
	  });
	  
	  $(".tiptop a").click(function(){
	  $(".tip").fadeOut(200);
	});

	  $(".sure").click(function(){
	  $(".tip").fadeOut(100);
	});

	  $(".cancel").click(function(){
	  $(".tip").fadeOut(100);
	});

 });
</script>
</head>
<body>
  <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="<%=basePath %>userInfoList">用户管理</a></li>
    <li><a href="#">修改</a></li>
    </ul>
    </div>
   <form action="<%=basePath %>userInfoUpdate" method="post">
    <div class="formbody">
    <div class="formtitle"><span>用户基本信息</span></div>
    <input type="hidden" name="isEnable" value="${member.isEnable }">
    <input type="hidden" name="registerTime" value="${member.registerTime }">
    <input type="hidden" name="password" value="${member.password }">
    <input type="hidden" name="question" value="${member.question }">
    <input type="hidden" name="answer" value="${member.answer }">
    <font color="green">${success }</font>
    <c:if test="${saveFlag!='1'}">
	   <ul class="forminfo">
	    <li><label>用户编号</label><input name="userId" type="text" class="dfinput" value="${member.userId }" readonly/><i>编号不允许修改</i></li>
	    <li><label>姓名</label><input name="username" type="text" class="dfinput" value="${member.username }"/></li>
	    <li><label>性别</label><cite><input name="sex" type="radio" value="M"  <c:if test="${'M' eq member.sex }">checked="checked" </c:if>  />男&nbsp;&nbsp;&nbsp;&nbsp;
	                                <input name="sex" type="radio" value="F" <c:if test="${'F' eq member.sex }">checked="checked" </c:if> />女</cite></li>
	    <li><label>出生日期</label><input name="birthDay" type="text" class="dfinput" value="${member.birthDay }" />
	          
	    </li>
	    <li><label>邮箱</label><input name="email" type="text" class="dfinput" value="${member.email }" ></li>
	    <li><label>角色</label><cite>
	           <select class="dfselect" name="roleId">
	              <option value="">---请选择---</option>
	              <option value="1" <c:if test="${'1' eq member.roleId }">selected </c:if>>管理员</option>
	              <option value="2" <c:if test="${'2' eq member.roleId }">selected </c:if> >客户经理</option>
	            </select></cite></li>
	       <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="修改"/>&nbsp;&nbsp;&nbsp;&nbsp;
	        <input name="" type="reset" class="btn" value="重置"/></li>
	    </ul>
    </c:if>
    <c:if test="${saveFlag=='1'}">  <!-- saveFlag=1 展示 -->
	    <ul class="forminfo">
	    <li><font color="green" font-size="7">${message }</font></li>
	    <li><label>姓名</label><input name="username" type="text" class="dfinput" value="${member.username }" readonly/></li>
	    <li><label>性别</label><cite><input name="sex" type="radio" value="M"  <c:if test="${'M' eq member.sex }">checked="checked" </c:if>  />男&nbsp;&nbsp;&nbsp;&nbsp;
	                                <input name="sex" type="radio" value="F" <c:if test="${'F' eq member.sex }">checked="checked" </c:if> />女</cite></li>
	    <li><label>出生日期</label><input name="birthDay" type="text" class="dfinput" value="${member.birthDay }" readonly/>
	          
	    </li>
	    <li><label>邮箱</label><input name="email" type="text" class="dfinput" value="${member.email }" readonly></li>
	    <li><label>角色</label><cite>
	           <select class="dfselect" name="roleId">
	              <option value="">---请选择---</option>
	              <option value="1" <c:if test="${'1' eq member.roleId }">selected </c:if>>管理员</option>
	              <option value="2" <c:if test="${'2' eq member.roleId }">selected </c:if> >客户经理</option>
	            </select></cite></li>
	    </ul>
    </c:if>
    </div>
    </form>
</body>
</html>